
#include "BuilderPerson.h"
#include "Person.h"
#include "PersonFat.h"
#include "PersonBeauty.h"
#include <memory>

using namespace npBuilder;
using namespace std;


void doBuilder()
{
    unique_ptr<BuilderPerson> builder(new BuilderPerson());
    
    unique_ptr<Person> fat(new PersonFat());
    builder->setBuildTarget(fat.get());
    builder->startToBuild();

    unique_ptr<Person> beauty(new PersonBeauty());
    builder->setBuildTarget(beauty.get());
    builder->startToBuild();
}